<?php
ob_start();
session_start();
include "checksession.php";
$id_member = $_SESSION["id_member"];

include_once  ("../connect.php");
$strSQL = "SELECT * FROM userlog WHERE id_member = '$id_member' ";
$objQuery = mysql_query($strSQL);
$objResult = mysql_fetch_array($objQuery);

?>
<html>
    <head>
      <title>Adinop Co., Ltd. was founded as an ingredients importer and local manufacturers’ distributor in 1986. We also function as an exporter of finished products</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="../images/it_service_logo.png" rel="shortcut icon" type="image/x-icon" /> 
        <link rel="stylesheet" href="../css/style.css"/>
    </head>
    <body class="body">
        <table align="center" width="90%">
            <tr>
                <td colspan="2" class="header" >
                    <a href="../loginIT.php"> <img src="../images/logo.png"> </a> <img src="../images/it_service_text.png" width ="150"> 
                    <hr/>
					<FONT SIZE="4" FACE="courier" COLOR=white><marquee behavior="scroll" direction="left" scrollamount="3" onmousedown="this.setAttribute('scrollamount', 3, 0);" onmouseup="this.setAttribute('scrollamount', 3, 0);">Welcome to Management Document IT </marquee></font>
                </td>
            </tr >
            <tr  valign="top">
                <td class="left">
<?php include_once "left.php";?>
                </td>
                <td align="center"> <br/>
                    <span class="nameTitle" >
                    <?php
                    if (!empty($_GET["url"])) {
                        $url = $_GET["url"];
                        $file = $url . ".php";
                        include_once $file;
                    } else {
                        echo "ยินดีต้องรับ คุณ $objResult[f_name] $objResult[l_name]";
                       
                        echo ' <br /><br /><img src="../images/computerrepair.jpg"/>';
						?>

					<?
					}
					
                    ?>
                    </span>
                </td>
            </tr>  
        
		    <tr>
                <td colspan="2">
                       <?include "counter.php";?>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                     <div><a href="../checklogout.php" onclick="return confirm('what do you want Exit')"> <img src="../images/logout.png" width="150px"></img></a></div>
                </td>
            </tr>
            <tr>
                <td class="footer" colspan="2">
                     Powered by Department Technology information Adinop
                </td>
            </tr>
              </table>                     
    </body>
</html>
<SCRIPT language=JavaScript> 
<!-- 

var message="ห้าม คลิก ขวา น่ะ ครับ"; 

/////////////////////////////////// 
function clickIE4(){ 
if (event.button==2){ 
alert(message); 
return false; 
} 
} 

function clickNS4(e){ 
if (document.layers||document.getElementById&&!document.all){ 
if (e.which==2||e.which==3){ 
alert(message); 
return false; 
} 
} 
} 

if (document.layers){ 
document.captureEvents(Event.MOUSEDOWN); 
document.onmousedown=clickNS4; 
} 
else if (document.all&&!document.getElementById){ 
document.onmousedown=clickIE4; 
} 

document.oncontextmenu=new Function("alert(message);return false") 

// --> 
</SCRIPT>
